﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace ForumsBrowser
{
    /// <summary>
    /// Interaction logic for MedalControl.xaml
    /// </summary>
    public partial class MedalControl : UserControl
    {
        public MedalControl() : base()
        {
            InitializeComponent();
        }

        public static readonly DependencyProperty FillBrushProperty = DependencyProperty.Register(
            "FillBrush", typeof(Brush), typeof(MedalControl), new PropertyMetadata(Brushes.Yellow));

        public static readonly DependencyProperty AchievedProperty = DependencyProperty.Register(
            "Achieved", typeof(int), typeof(MedalControl), new PropertyMetadata(0));

        public static readonly DependencyProperty EdgeProperty = DependencyProperty.Register(
            "Edge", typeof(Brush), typeof(MedalControl), new PropertyMetadata(Brushes.Black));


        public Brush FillBrush
        {
            get { return (Brush)this.GetValue(FillBrushProperty); }
            set { this.SetValue(FillBrushProperty, value); }
        }

        public int Achieved
        {
            get { return (int)this.GetValue(AchievedProperty); }
            set { this.SetValue(AchievedProperty, value); }
        }

        public Brush Edge
        {
            get { return (Brush)this.GetValue(EdgeProperty); }
            set { this.SetValue(EdgeProperty, value); }
        }
    }
}
